import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import animated from 'animate.css'


// 按需引入vant
import {
  Button,
  Form,
  Field,
  Toast,
  Icon,
  Swipe,
  SwipeItem,
  PullRefresh,
  List,
  Tab,
  Tabs,
  SwipeCell,
  CheckboxGroup,
  Checkbox,
  SubmitBar,
  Stepper,
  GridItem,
  Grid,
  Cell,
  CellGroup,
  Card, 
  AddressList,
  AddressEdit,
  Area,
  Dialog,
  Popup,
  ActionBar, 
  ActionBarIcon,
   ActionBarButton,
  Loading 


} from 'vant'

// 引入移动端适配rem
import 'amfe-flexible'
createApp(App).use(store).use(router)
  .use(Button)
  .use(Stepper)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Swipe)
  .use(Cell)
  .use(CellGroup)
  .use(SubmitBar)
  .use(Form)
  .use(Field)
  .use(Icon)
  .use(Toast)
  .use(SwipeItem)
  .use(PullRefresh)
  .use(List)
  .use(Tab)
  .use(Tabs)
  .use(SwipeCell)
  .use(CheckboxGroup)
  .use(Checkbox)
  .use(SubmitBar)
  .use(Stepper)
  .use(GridItem)
  .use(Grid)
  .use(Card)
  .use(AddressList)
  .use(AddressEdit)
  .use(Area)
  .use(Dialog)
  .use(Popup)
  .use(Loading)
  .use(ActionBar)
  .use(  ActionBarIcon)
  .use( ActionBarButton)
  .use(animated)
.mount('#app')

